You can create a library item from any selected portion of a document. When you create a library item from a selected portion of document, Dreamweaver converts the selected area into a non-editable library item.
To create a library item:
1 | Select a portion of a document to save as a library item. |
The selection can include anything in a document, including text, tables, forms, images, Java applets, plugins, or ActiveX elements. Dreamweaver stores only a reference to linked items such as images. The original file must remain at the specified location for the library item to work correctly. | |
2 | Do one of the following: |
![]() |
Choose Window > Library to open the Library palette and drag the selection into the Library palette, or click the Create button on the Library palette. Hold down Control (Windows) or Command (Macintosh) to prevent the selection from being replaced by the new library item. |
![]() |
Choose Modify > Add Object to Library. |
3 | Enter a name for the new library item. |
![]() |
Note: If you create a library item that includes an element linked with a document-relative path, the link may not work correctly if you add the item to a document in a different location. See also About relative and absolute paths.